package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.EventAddress;
import com.xhh.nphm.system.mapper.EventAddressDao;
import com.xhh.nphm.system.service.IEventAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * 事发地址 service
 */
@Service
public class EventAddressServiceImpl extends ServiceImpl<EventAddressDao, EventAddress> implements IEventAddressService {
    @Autowired
    private  EventAddressDao eventAddressDao;
    @Transactional(rollbackFor = Exception.class)
    @Override
    public int insert(EventAddress eventAddress) {
        return eventAddressDao.insert(eventAddress);
    }
}
